/*
 * NoUserDupesComparator.java
 *
 * Created on July 1, 2006, 4:42 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package libjdc.dc.util;

import libjdc.dc.client.User;
import java.util.Comparator;

/**
 *
 * @author root
 */
public class NoUserDupesComparator implements Comparator<User> {
    
    /** Creates a new instance of NoUserDupesComparator */
    public NoUserDupesComparator() {
    }

    public int compare(User o1, User o2) {
        return o1.toString().compareTo(o2.toString());
    }
    public static void main(String[] args) {
        User me = new User("[PT]sniffer","{HubSniffer Project} <++ V:0.674,M:A,H:1/0/0,S:3>", "DSL","email@com.c", 104219547999L);
        
        System.out.println(new Integer(1).compareTo(new Integer(3)));
    }
    
}
